package com.rybbaby.tss.front.tssStatistics.entity;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @description  顾问业绩统计
 * 
 * @author 雷春琼
 * 
 * @createDate 2017-08-10 上午12:25:24
 */
@Entity
@Table(name = "view_added_member_month")
@DynamicUpdate(true)
@DynamicInsert(true)
public class ViewAddedMemberMonth implements Serializable {


	private static final long serialVersionUID = 6894484791674808679L;
	/** 教室ID **/
	private String id;
	/** 教室名称 **/
	private Integer added;
	/** 班级ID **/
	private Integer renewal;
	/** 会员类型 **/
	private Integer type;
	/** 开班时间 **/
	private String createDate;


	/**
	 * 方法: 取得主键
	 *
	 * @return java.lang.String 主键
	 */
	@Id
	@GeneratedValue(generator = "view_added_member_monthIDGenerator" , strategy = GenerationType.AUTO)
	@GenericGenerator(name = "view_added_member_monthIDGenerator" , strategy = "uuid")
	@Column(name = "id", nullable= false, length = 17)
	public String getId() {
		return this.id;
	}
	
	/**
	 * 方法: 设置主键
	 *
	 * @param id 主键
	 */
	public void setId(String id) {
		this.id = id;
	}
	

	@Column(name = "added", nullable= true, length = 32)
	public Integer getAdded() {
		return added;
	}

	public void setAdded(Integer added) {
		this.added = added;
	}


	@Column(name = "type", nullable= true, length = 32)
	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	@Column(name = "renewal", nullable= true, length = 32)
	public Integer getRenewal() {
		return renewal;
	}

	public void setRenewal(Integer renewal) {
		this.renewal = renewal;
	}

	@Column(name = "createDate", nullable= true, length = 32)
	public String getCreateDate() {
		return createDate;
	}

	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}

}